# scores/schemas.py
from pydantic import BaseModel
from typing import Optional


class ScoreBase(BaseModel):
    student_id: str
    student_name: Optional[str] = None
    class_name: Optional[str] = None
    exam_sequence: int
    score: Optional[int] = None


class ScoreCreate(ScoreBase):
    pass


class ScoreUpdate(ScoreBase):
    pass


class Score(ScoreBase):
    class Config:
        from_attributes = True